<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a >买家退款原因列表</a></li>
			<li><a href="{:url('Refundreason/add')}">{:lang('ADD')}</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('Refundreason/index')}">
			关键字： 
            <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"
                   placeholder="请输入查询关键字">
			<input type="submit" class="btn btn-primary" value="搜索">
			<a class="btn btn-danger" href="{:url('Refundreason/index')}">清空</a>
		</form>
		<form method="post" class="js-ajax-form" action="{:url('Refundreason/listOrder')}">
			<div class="table-actions">
                <button class="btn btn-primary btn-sm js-ajax-submit" type="submit">{:lang('SORT')}</button>
            </div>
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th>序号</th>
						<th>ID</th>
						<th>退款原因</th>
						<th>添加时间</th>
						<th>修改时间</th>
						<th>显示状态</th>
						<th>{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="lists" item="vo">
					<tr>
						<td><input name="list_orders[{$vo.id}]" class="input-order" type="text" value="{$vo.list_order}"></td>
						<td>{$vo.id}</td>
						<td>{$vo['name']}</td>
						<td>{:date('Y-m-d H:i',$vo['addtime'])}</td>
						<td><if condition="$vo['edittime'] neq '0'">{:date('Y-m-d H:i',$vo['edittime'])}<else />--</if></td>
						<td>{$status[$vo['status']]}</td>
						<td align="center">
                            <a class="btn btn-xs btn-primary" href='{:url("Refundreason/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
							
							<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('Refundreason/del',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
							
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>